/**
 * MyApply.java
 */
package com.prs.crm.domain.official;

import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import com.prs.crm.domain.BaseEntity;
import com.prs.crm.domain.approval.Application;
import com.prs.crm.domain.ca.work.PurchaseApply;

/**
 * @author ZhuDongMei
 * @E-mail:1223984339@qq.com
 * @qq:1223984339
 * @version 创建时间：2011-3-16 上午11:12:28 简单说明
 */
@Entity
@Table(name="official_apply")
public class MyApply extends BaseEntity {
	private static final long serialVersionUID = 1L;
	/**
	 * 个人办公中我的申请
	 */
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
    private Integer id;
    private String name;
    private Date time;
    private String state;
    private String flow;
    private String addvice;
    private String remark;
    @ManyToOne
    private PurchaseApply purchaseApply;
    @ManyToOne
    private Application application;
	public Application getApplication() {
		return application;
	}
	public void setApplication(Application application) {
		this.application = application;
	}
	public PurchaseApply getPurchaseApply() {
		return purchaseApply;
	}
	public void setPurchaseApply(PurchaseApply purchaseApply) {
		this.purchaseApply = purchaseApply;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Date getTime() {
		return time;
	}
	public void setTime(Date time) {
		this.time = time;
	}
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}
	public String getFlow() {
		return flow;
	}
	public void setFlow(String flow) {
		this.flow = flow;
	}
	public String getAddvice() {
		return addvice;
	}
	public void setAddvice(String addvice) {
		this.addvice = addvice;
	}
}
